#include <iostream> 
#include <cstring> 
#include <cstdlib> 
#include <cstdio> 
using namespace std;
const int MAX = 210;
int max(int a,int b){
	if(a>b) return a;
	else return b;
}
char* AddHugeInt(const char *a,const char*b,char *c){
	int enda = strlen(a)-1,endb = strlen(b)-1,M = max(enda,endb),a_,b_;
	int j = 0;cout<<"****"<<enda<<endb<<endl;
	for( int i=M; i>=0; i--,enda--,endb-- ){
		if( enda<0) a_=0;else a_=a[enda]-48;
		if( endb<0) b_=0;else b_=b[endb]-48;
		int s = j+a_+b_;
		if( s>=10 ){
			j = 1;
			c[i] = s%10+48;
		}else{
			c[i] = s%10+48;
			j = 0;
		}cout<<"c[i]="<<c[i]<<endl;
	} 
	return c;
}

int main(){
	char s[10]="999999990",a[5]="4240",c[20];
	AddHugeInt(s,a,c);
	cout<<c;
	return 0;
}
